package com.mapapp.flutter_mapapp.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class StepFloorProcessBean implements Parcelable {
    private String id;
    private String name;
    private int count;
    private double percent;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPercent() {
        return percent;
    }

    public void setPercent(double percent) {
        this.percent = percent;
    }

    protected StepFloorProcessBean(Parcel in) {
        id = in.readString();
        name = in.readString();
        count = in.readInt();
        percent = in.readDouble();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(name);
        dest.writeInt(count);
        dest.writeDouble(percent);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<StepFloorProcessBean> CREATOR = new Creator<StepFloorProcessBean>() {
        @Override
        public StepFloorProcessBean createFromParcel(Parcel in) {
            return new StepFloorProcessBean(in);
        }

        @Override
        public StepFloorProcessBean[] newArray(int size) {
            return new StepFloorProcessBean[size];
        }
    };
}
